Video playing method and apparatus, electronic device, medium, and program product

ABSTRACT

In a method for displaying video, a first target surface of a geometric body on which a first target video is to be displayed is determined. Pixel point sets corresponding to respective video frames of the first target video are obtained. Each of the respective video frames is mapped to the first target surface based on a mapping relationship between position information of pixel points in the pixel point sets of the respective video frame and position information of a plurality of vertices on the first target surface. The respective video frames include a target video frame that is displayed on the first target surface based on the mapping of the target video frame to the first target surface. The first target video is displayed on the first target surface of the geometric body based on the mapping of the respective video frames to the first target surface.

RELATED APPLICATIONS

This application is a continuation of International Application No.PCT/CN2023/072548, filed on Jan. 17, 2023, which claims priority toChinese Patent Application No. 202210234153.7, entitled “VIDEO PLAYINGMETHOD AND APPARATUS, ELECTRONIC DEVICE, AND STORAGE MEDIUM”, and filedon Mar. 10, 2022. The entire disclosures of the prior applications arehereby incorporated by reference.

FIELD OF THE TECHNOLOGY

The embodiments of this disclosure relate to the field of computertechnology, including to video playing.

BACKGROUND OF THE DISCLOSURE

Texture map, also referred to as texture mapping, includes the processof establishing a corresponding relationship between 3 dimensional (3D)model surfaces and pixel coordinates in 2D image space. The originallyconstructed 3D model has no texture features. To make the 3D model havebetter visual effects, texture mapping may be performed on the 3D model.

For example, referring to FIG. 1, there are a plurality of surfaces ofthe 3D model in a 3D scene in FIG. 1, and different pictures areseparately displayed on each surface according to a texture mapping. Assuch, a target object may jump or move to different surfaces by clickingor sliding to view picture information presented on the differentsurfaces.

Although the above solution also applies the 3D technology, staticpictures are used as the texture mapping on each surface of the 3Dmodel. Therefore, picture information presented on each surface is fixedafter pasting the static pictures on each surface of the 3D model. Evenif the static pictures on each surface may be updated at a set timeinterval, less picture information can be acquired by the target objectfrom the surfaces of the 3D model, thus failing to fully engage theviewing interest of the target object.

SUMMARY

In order to solve the technical problem present in the related art, theembodiments of this disclosure provide a video playing method andapparatus, an electronic device, a non-transitory computer-readablestorage medium, and a program product. It can enable the target objectto acquire more information and more fully engage the viewing interestof the target object. At the same time, it can enhance the 3D spatialimmersion of the target object and improve the viewing experience of thetarget object.

In an aspect, the embodiments of this disclosure provide a method fordisplaying video. In the method, a first target surface of a geometricbody on which a first target video is to be displayed is determined.Pixel point sets corresponding to respective video frames of the firsttarget video are obtained. Each of the respective video frames is mappedto the first target surface based on a mapping relationship betweenposition information of pixel points in the pixel point sets of therespective video frame and position information of a plurality ofvertices on the first target surface. The respective video framesinclude a target video frame that is displayed on the first targetsurface based on the mapping of the target video frame to the firsttarget surface. The first target video is displayed on the first targetsurface of the geometric body based on the mapping of the respectivevideo frames to the first target surface

In an aspect, the embodiments of this disclosure provide a videoprocessing apparatus, including processing circuitry. The processingcircuitry is configured to determine a first target surface of ageometric body on which a first target video is to be displayed. Theprocessing circuitry is configured to obtain pixel point setscorresponding to respective video frames of the first target video. Theprocessing circuitry is configured to map each of the respective videoframes to the first target surface based on a mapping relationshipbetween position information of pixel points in the pixel point sets ofthe respective video frame and position information of a plurality ofvertices on the first target surface. The respective video framesinclude a target video frame that is displayed on the first targetsurface based on the mapping of the target video frame to the firsttarget surface. The processing circuitry is configured to display thefirst target video on the first target surface of the geometric bodybased on the mapping of the respective video frames to the first targetsurface.

In an aspect, the embodiments of this disclosure provide a computerdevice, including a memory, a processor, and a computer program storedin the memory and run on the processor which, when executes the program,performs the video display method.

In an aspect, the embodiments of this disclosure provide anon-transitory computer-readable storage medium storing instructionswhich, when executed by a processor, cause the processor to perform thevideo display method.

In an aspect, the embodiments of this disclosure provide a computerprogram product, including a computer program stored in acomputer-readable storage medium, the computer program, when executed bya processor, implementing the video display method.

This disclosure can have the following beneficial effects.

A target video is acquired in response to a video playing operationtriggered for a target surface of a cubic geometric body. The respectivevideo frames included in the target video are mapped to the targetsurface successively based on a mapping relationship between positioninformation about each pixel point in the video frames and positioninformation about each vertex on the target surface. As such, every timea video frame is mapped, the mapped video frame is played. Thisdisclosure enables a video to be played in a 3D scene by mapping thevideo as a texture to the surfaces of the cubic geometric body andplaying the video on the surfaces of the cubic geometric body. Comparedwith the way of pasting a static picture as a texture on the surfaces ofthe cubic geometric body, the solution can enable the viewer to acquiremore information and fully arouse the viewing interest of the viewer. Atthe same time, it can enhance the 3D spatial immersion of the targetobject and improve the viewing experience of the target object.

Additional features and advantages of this disclosure will be set forthin the following specification. In addition, part of the features andadvantages will be apparent from the specification or may be recognizedby implementing this disclosure. Exemplary objectives and otheradvantages of this disclosure may be realized and obtained by thestructures particularly specified in the written specification, claims,and drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a schematic diagram of texture mapping of a 3D scene.

FIG. 2 is a schematic diagram of an application scene in an embodimentof this disclosure.

FIG. 3 is a flowchart of a video playing method in an embodiment of thisdisclosure.

FIG. 4 is a schematic diagram of a process of texture mapping in anembodiment of this disclosure.

FIG. 5 a is a flowchart of another video playing method in an embodimentof this disclosure.

FIG. 5 b is a schematic diagram of adding a start button into a video inan embodiment of this disclosure.

FIG. 5 c is a schematic diagram of a 3D model only including a geometryin an embodiment of this disclosure.

FIG. 5 d is a schematic diagram of a 3D model pasted with a video on asurface in an embodiment of this disclosure.

FIG. 6 a is a schematic diagram of reducing a picture dimension of atarget surface in an embodiment of this disclosure.

FIG. 6 b is a schematic diagram of magnifying a picture dimension of atarget surface in an embodiment of this disclosure.

FIG. 6 c is a schematic diagram of rotating a playing direction of atarget surface in an embodiment of this disclosure.

FIG. 7 a is a schematic diagram of switching a candidate surface bysliding in an embodiment of this disclosure.

FIG. 7 b is a schematic diagram of switching a candidate surface byclicking in an embodiment of this disclosure.

FIG. 8 a is a schematic diagram of viewpoint switching in an embodimentof this disclosure.

FIG. 8 b is a schematic diagram of a multi-finger reverse slidingoperation in an embodiment of this disclosure.

FIG. 8 c is a schematic diagram of a video playing effect in anembodiment of this disclosure.

FIG. 8 d is another schematic diagram of viewpoint switching in anembodiment of this disclosure.

FIG. 8 e is a schematic diagram of another multi-finger opposite slidingoperation in an embodiment of this disclosure.

FIG. 8 f is a general flowchart of a video playing method in anembodiment of this disclosure.

FIG. 9 is a schematic structural diagram of a video playing apparatus inan embodiment of this disclosure.

FIG. 10 is a schematic structural diagram of another video playingapparatus in an embodiment of this disclosure.

FIG. 11 is a schematic structural diagram of an electronic device in anembodiment of this disclosure.

FIG. 12 is a schematic structural diagram of another electronic devicein an embodiment of this disclosure.

DESCRIPTION OF EMBODIMENTS

To make the objectives, technical solutions, and advantages of theembodiments of this disclosure clearer, the technical solutions of thisdisclosure are described below in conjunction with the drawings in theembodiments of this disclosure. The embodiments described are only some,but not all embodiments of the technical solutions of this disclosure.Other embodiments shall fall within the scope of the technical solutionsof this disclosure.

In this specification, claims, and the foregoing drawings of thisdisclosure, the terms “first”, “second”, and the like are intended todistinguish between similar objects and not necessarily for describing aspecific order or chronological order. It is to be understood that thedata used in this way are interchangeable under appropriatecircumstances such that the embodiments of this disclosure describedherein can be implemented in a sequence than those illustrated ordescribed herein.

Some terms in the embodiments of this disclosure are explained below tofacilitate understanding by those skilled in the art.

In an aspect, a 3D model includes a cubic geometric body or a 3D object.

In an aspect, Hyper text markup language 5 (HTML5) is a way of languagedescription used to build web content. For example, HTML5, a nextgeneration of Internet standards, is a way of language to build andpresent the Internet content. It is considered as one of the coretechnologies of the Internet. HTML5 is the specification of the corelanguage HTML in the web. When the target object uses any manners tobrowse a web page, the content is originally in a HTML format, but isconverted into recognizable information by some technical processes.

In an example, HTML5 specifies a labeling method for including the videoby a video element, and the video element can be used for playing thevideo.

In an aspect, Web graphics library (WebGL) is a 3D drawing protocol.This drawing technology standard allows JavaScript and OpenGL ES 2.0 tobe combined together, so that WebGL can provide hardware 3D acceleratedrendering for HTML5 Canvas by adding a JavaScript binding of OpenGL ES2.0. As such, the web developers can present 3D scenes and models in abrowser more smoothly by a system graphics card. Canvas is part ofHTML5, and allows the scripting language to dynamically render bitimages.

In an aspect, Threejs is a 3D engine running in the browser. It can beused to create various 3D scenes in the web. Threejs is an easy-to-use3D graphics library formed by the encapsulation and simplification of aWebGL interface, and includes various objects, such as cameras, shadows,and materials.

In an aspect, a 3D camera is used in simulating the scene seen by humaneyes.

The word “exemplary” used hereinafter means “serving as an example,embodiment, or illustration”. Any embodiment described as “exemplary” isnot necessarily to be construed as preferred or better than otherembodiments.

In the text, the terms “first” and “second” are merely used fordescribing the objectives and are not understood as expressing orimplying the relative importance, or implicitly indicating the number ofindicated technical features. Thus, features defined with the “first” or“second” may explicitly or implicitly include one or more of thefeatures. In the description of the embodiments of this disclosure,unless otherwise specified, “a plurality of” means two or more.

The design ideas of the embodiments of this disclosure are brieflydescribed below.

In the related art, as shown in FIG. 1 , a static picture may be used asthe texture mapping on different surfaces of the 3D model. As such, theusing object may view information included in the respective staticpicture on different surfaces by switching to different surfaces of the3D model.

However, according to the above solution, after pasting the staticpicture on different surfaces of the 3D model, the picture informationpresented on these surfaces is fixed. Limited information can beacquired by the using object from these surfaces, thus failing to arousethe viewing interest of the using object. In addition, the way of usingthe static picture as the texture mapping of the 3D model does notenable the using object to visually and strongly feel the spatialimmersion brought by 3D, resulting in a poor viewing experience of theusing object.

In view of this, the embodiments of this disclosure provide a videoplaying method and apparatus, an electronic device, and a storagemedium. A target video is acquired in response to a video playingoperation triggered by a target object for a target surface of a cubicgeometric body. The respective video frames included in the target videoare mapped to the target surface successively based on a mappingrelationship between position information about each pixel point in thevideo frames and position information about each vertex on the targetsurface. As such, every time a video frame is mapped, the mapped videoframe is played for the target object. By mapping the 2D video to thesurfaces of the cubic geometric body, the effect of playing the video onthe surfaced of the cubic geometric body can be formed visually. For onething, it enables the target object to acquire more useful informationby the video and increases the viewing interest of the target object.For another thing, it enables the target object to more fully feel thecharm of 3D technology, enhances the 3D spatial immersion of the targetobject, and improves the viewing experience of the target object.

Exemplary embodiments of this disclosure are described below inconnection with the drawings of the specification. It is to beunderstood that the embodiments described herein are merely used forillustrating and explaining this disclosure, and are not used forlimiting this disclosure. The embodiments of this disclosure and thefeatures of the embodiments may be combined in various manners with oneanother without conflict.

With reference to FIG. 2 , a schematic diagram of an application scenein an embodiment of this disclosure is shown. The application sceneincludes at least a terminal device 110 and a server 130. Theapplication operation interface 120 may be logged in by the terminaldevice 110. There may be one or more terminal devices 110 and one ormore servers 130. This disclosure does not specifically define thenumber of the terminal devices 110 and the servers 130. The terminaldevice 110 and the server 130 may communicate via a communicationnetwork.

In the embodiments of this disclosure, both the terminal device 110 andthe server 130 belong to the computer device. A video application havinga video playing function is pre-installed in the terminal device 110.The target object may watch a video by the video playing interface ofthe video application. The type of the video application includes aclient application, a web page application, and an applet. The terminaldevice 110 may be, but is not limited to, a personal computer, a mobilephone, a tablet computer, a notebook, an e-book reader, a smart home, anintelligent voice interaction device, and a vehicle-mounted terminal.

The server 130 may be an independent physical server, may be a servercluster or a distributed system of a plurality of the physical servers,or may be a cloud server providing basic cloud computing services, suchas cloud service, cloud database, cloud computing, cloud function, cloudstorage, network service, cloud communication, middleware service,domain name service, security service, content delivery network (CDN),and big data and artificial intelligence platforms. The terminal device110 and the server 130 may be directly or indirectly connected by awired or wireless communication way, which is not limited in thisdisclosure.

The video playing method in the embodiments of this disclosure may beexecuted by the terminal device 110, by the server 130, and by theinteraction of the terminal device 110 and the server 130.

For example, the terminal device 110 executes the video playing methodin the embodiments of this disclosure, and the method includes thefollowing steps.

The terminal device 110 acquires a target video in response to a videoplaying operation triggered by a target object for a target surface of acubic geometric body in a video playing interface of a videoapplication; and obtains pixel point sets corresponding to respectivevideo frames included in the target video separately and maps therespective video frames to the target surface successively based on amapping relationship between position information about each pixel pointin each pixel point set and position information about each vertex onthe target surface. Every time a video frame is mapped, the mapped videoframe is played for the target object.

FIG. 2 is an exemplary introduction to the application scene of thevideo playing method of this disclosure. The application scene to whichthe method in the embodiments of this disclosure can be applied is notlimited thereto.

To further illustrate the technical solutions of the embodiments of thisdisclosure, the technical solutions will be described in further detailin conjunction with the drawings and specific implementations. Althoughthe embodiment of this disclosure provides the operation steps of themethod as described in the following embodiments or drawings, the methodmay include more or less operation steps. In the steps in whichlogically there is no necessary causal relationship, the execution orderof the steps is not limited to the execution order provided by theembodiments of this disclosure. The method can be executed based on theorder of the method shown in the embodiments or drawings, or can beexecuted in parallel during the actual processing or apparatusexecution.

FIG. 3 shows a flowchart of a video playing method provided by anembodiment of this disclosure. The method may be performed by thecomputer device, and the computer device may be the terminal device 110and/or the server 130 in FIG. 2 . As shown in FIG. 3 , the methodincludes the following steps.

S301: Acquire a target video in response to a video playing operationtriggered for a target surface of a cubic geometric body. In an example,a first target surface of a geometric body on which a first target videois to be displayed is determined.

The cubic geometric body is a 3D object having a set physical shape, andthe cubic geometric body may include a plurality of surfaces thereon.Each surface on the cubic geometric body may correspond to a video. Thetarget video corresponding to the target surface may be acquired inresponse to the video playing operation triggered by the target objectfor any surface of the cubic geometric body, i.e., the target surface.

S302: Obtain pixel point sets corresponding to respective video framesincluded in the target video separately and map the respective videoframes to the target surface successively based on a mappingrelationship between position information about each pixel point in eachpixel point set and position information about each vertex on the targetsurface. In an example, pixel point sets corresponding to respectivevideo frames of the first target video are obtained. Each of therespective video frames is mapped to the first target surface based on amapping relationship between position information of pixel points in thepixel point sets of the respective video frame and position informationof a plurality of vertices on the first target surface. The respectivevideo frames include a target video frame that is displayed on the firsttarget surface based on the mapping of the target video frame to thefirst target surface. Further, in an example, the first target video isdisplayed on the first target surface of the geometric body based on themapping of the respective video frames to the first target surface.

The respective video frames includes a target video frame, and thetarget video frame is played on the target surface after the targetvideo frame is mapped to the target surface.

After the target video is acquired, for the target video frame, namely,any video frame of the respective video frames included in the targetvideo, the following operations may be separately performed: mapping thetarget surface to a texture coordinate system to obtain a target texturecoordinate plane and a first corresponding relationship, the firstcorresponding relationship being used for identifying each vertex on thetarget surface corresponding to a texture coordinate on the targettexture coordinate plane; adjusting a picture dimension of the targetvideo frame to obtain a second corresponding relationship according toan image dimension of the target texture coordinate plane, the secondcorresponding relationship being used for identifying each pixel pointin the adjusted target video frame corresponding to a texture coordinateon the target texture coordinate plane; and mapping the respective pixelpoints to vertices having a same texture coordinate in the targetsurface separately based on the mapping relationship obtained by thefirst corresponding relationship and the second correspondingrelationship.

In an example, texture mapping is a square pattern or image applied tothe surfaces of the object. It can change the color, brightness, otherappearance, and the like of the surfaces of the object. Texture mappingcan make the 3D object appear more realistic.

In 3D technologies, the texture mapping may be mapped to the appearanceof the 3D model by a UV coordinate. UV is the abbreviation of thetexture coordinate system. The texture coordinate system has twocoordinate axes of U and V. U represents the distribution on thehorizontal coordinate, and V represents the distribution on the verticalcoordinate. The two have a value range of 0-1, indicating the percentagedistance of a certain point from the origin of the texture coordinatesystem (0, 0). For example, U coordinate of 0.3 indicates that the pointis at the horizontal position 30% away from the origin.

The color information of each pixel point on the texture mapping may belocated and acquired by the UV coordinate, and the 3D object is composedof vertices. By binding the corresponding relationship between the UVcoordinate and the vertices of the 3D object, the color information of acertain pixel point on the texture mapping may be accurately correspondto a certain vertex on the surfaces of the 3D object. By this mappingrelationship, it can be determined what appearance appears on thesurfaces of the 3D object.

In other words, UV can be understood as “peeling” the surfaces of the 3Dobject and then spreading out the surfaces to a 2D plane. Only the 2Dtexture mapping needs to be modified when the appearance of the 3Dobject needs to be changed so as to facilitate modification andoperation.

For example, the 3D object is a sphere, the texture mapping is an earthpattern, and the earth pattern is pasted on the surfaces of the sphere.The process of pasting the 2D texture mapping on the surfaces of the 3Dobject will be described. As shown in FIG. 4 , all the vertices on thesurfaces of the sphere are spread out to the UV plane, and then theearth pattern is stretched into a square and corresponds to the UVplane. As such, after the mapping relationship, each vertex of thesurfaces of the 3D object corresponds to the color information of therespective pixel points in the texture mapping.

When each video frame is mapped to the target surface successively basedon the mapping relationship between the video frame and the targetsurface, every time a video frame is mapped, the video frame is played.Namely, every time a video frame of the target video is mapped to thetarget surface of the cubic geometric body, the target object can viewthe picture content of the video frame on the target surface.

Alternatively, a plurality of cubic geometric bodies may be freelycombined to obtain a 3D object having a set shape, and the correspondingvideo is mapped as the texture mapping to the respective surfaces of theobtained 3D object.

In an embodiment, the video playing method provided by this disclosuremay also be implemented according to the process shown in FIG. 5 a . Asshown in FIG. 5 a , the method includes the following steps.

S501: Create a video element.

The video element may be added to the video playing page.

In an example, a video container may be added on the video playing pageusing a <video> tag, and <video> is a tag used by HTML5 to define thevideo. By the tag, the video may be played on the video playing page.

When embedding a video in the video playing page, by specifying a“display: none” style, the video may be invisible in the video playingpage. This is because the video needs to be applied as the texturemapping to the surfaces of the 3D model, rather than rendering the videodirectly on the video playing page. The detailed codes may be asfollows:

-   -   <video id=“video” loop crossOrigin=“anonymous” playsinline        style=“display: none”>    -   <source src=“videos/abc.mp4” type=“video/mp4”> </video>

The HTML5 specification requires that videos need to be started by thetarget object's touch screen behavior, so a start button needs to beadded to each video to guide the target object to click the screen. Asshown in FIG. 5 b , the play button in the middle of the video is thestart button for guiding the target object to click the screen.

In an example, the first frame of the picture of the video isintercepted in advance and used as the initial texture mapping of thesurfaces of the 3D model, so that the first frame of the picture of thevideo appears on the 3D model. The play button is added to the firstframe of the picture of the video, and listening is performed for ascreen click event.

In addition, instead of intercepting the first frame of the picture ofthe video, only the play button or only a prompt text may be displayedfor the target object to click the screen.

After listening to the click event of the target object, the video maybe played on the surfaces of the 3D model. The relevant codes may be asfollows:

 const startButton = document.getElementById(“startButton”); //Acquirebutton on page  startButton.addEventListener(“click”, function( )  {  const video = document.getElementById(“video”); //Acquire video  object   video.play( ); //Play video  }); //Click event of listeningbutton

S502: Bind the video element to a video texture.

The general texture mapping is a 2D image. The surface time of the 3Dmodel is changed by constantly changing the texture mapping. Finally,the appearance of the 3D model is changed when the WebGL drives thegraphics card to execute a screen rendering instruction.

When the video picture changes, the picture of the current video iscollected and then applied as new texture mapping to the surfaces of the3D model.

VideoTexture is a video texture encapsulated by the Threejs engine. Byit, a texture object using a video as the mapping may be created.

VideoTexture automatically obtains each frame of the picture of thevideo based on the playing of the video, and converts the frame of thepicture into the texture mapping of the square that can be used by theThreejs engine.

The video element created in S501 may be bound to the video texture, sothat the video texture is automatically updated when the picture of thevideo changes. The codes for creating the video texture may be asfollows:

-   -   const video=document.getElementById(“video”); //Acquire video        object    -   const texture=new THREE.VideoTexture(video); //Input video        object into video texture

S503: Create a geometry and a surface material of a 3D model.

To create the 3D model in Threejs, two attributes are required: thegeometry and the material. The geometry is used for defining thephysical shape of the 3D model, such as a UV coordinate, a vertexposition vector, a patch index, and a normal vector. The material isused for defining the visual appearance of the 3D model, such as thecolor, shading, and transparency.

PlaneGeometry is a class used in Threejs to create a planar cube, andPlaneGeometry can be used as the geometry of the 3D model.

MeshLambertMaterial is a surface material used in Threejs to indicatethat there is no specular high gloss, and MeshLambertMaterial can beused as the surface material of the 3D model. The texture mapping isbound to the surface material to be eventually understood and used bythe Threejs engine, and the effect of not binding the texture to thesurface material can be seen in FIG. 5 c . Only the geometry of the 3Dmodel can be seen.

The embodiments of this disclosure only uses MeshLambertMaterial as thesurface material of the 3D model in order to prevent the video fromreflecting. in practical application, the surface material of the 3Dmodel is not limited by any material type.

S504: Bind the video texture to the surface material of the 3D model.

After the geometry and the surface material of the 3D model are created,the video texture created in S502 can be bound to the surface materialby the map parameters of MeshLambertMaterial. The relevant codes ofbinding the video texture to the surface material may be as follows:

-   -   //Create geometry, xsize, ysize, and zsize are length, width,        and height of 3D model respectively    -   let geometry=new THREE.BoxBufferGeometry(xsize, ysize, zsize);    -   //Create surface material, specify color and texture map for        surface material, and input video texture created above as        mapping to the surface texture    -   let material=new THREE.MeshLambertMaterial({color: Oxffffff,        map: texture});    -   //Create video fragments using geometry and surface material    -   let mesh=new THREE.Mesh(geometry, material);

When the video texture created in S502 is applied to the surfacematerial of the 3D object, the process in S504 is automaticallyperformed again as long as new texture mapping is generated due to thecharacteristics of the video texture.

By the related flow shown in FIG. 5 a , as shown in FIG. 5 d , a 3Dmodel in a shape of a magic cube can be created as a cubic geometricbody, and the video is pasted as a texture to each surface of the magiccube.

After mapping the video texture to the surface of the cubic geometricbody by the surface material, every time the WebGL renders a picture,the latest pattern of the video texture is presented to the appearanceof the surfaces of the cubic geometric body in the original UVcoordinate. As such, the played video can be seen on the surfaces of thecubic geometric body.

According to the video playing method provided by an embodiment of thisdisclosure, a current picture is captured in real time when a video isplayed. The picture of the video is updated to a map texture of a 3Dmodel at each time of screen rendering. Finally, the appearance of the3D model changes synchronously with the change of the picture of thevideo in real time by texture mapping, visually as if the video isplayed on the 3D model to enrich the expressiveness of the 3D scene. Inaddition, according to the needs of the project, the 3D model may befreely combined, and the position of the 3D camera may be changed tofurther enrich the interaction form between the target object and thevideo, stimulate the curiosity of the target object, and improve theviewing and interaction interests of the target object.

In some embodiments, when playing the target video, a picture dimensionor a playing direction of the target video played on the target surfaceof the cubic geometric body may be adjusted in response to a pictureadjustment operation triggered for the target surface.

In particular, the picture dimension of the target surface may bereduced in response to a multi-finger gathering operation triggered forthe target surface. In addition, the degree of reduction of the picturedimension of the target surface is determined by the multi-fingergathering operation triggered for the target surface.

For example, FIG. 6 a (1) is a picture currently displayed on the targetsurface. In response to the multi-finger gathering operation triggeredby the target object for the target surface, the picture dimensiondisplayed in FIG. 6 a (1) may be reduced such that the picture as shownin FIG. 6 a (2) is displayed on the target surface.

The picture dimension of the target surface may be magnified in responseto a multi-finger magnification operation triggered for the targetsurface. In addition, the degree of magnification of the picturedimension of the target surface is determined by the multi-fingermagnification operation triggered for the target surface.

For example, FIG. 6 b (1) is a picture currently displayed on the targetsurface. In response to the multi-finger magnification operationtriggered by the target object for the target surface, the picturedimension displayed in FIG. 6 b (1) may be magnified such that thepicture as shown in FIG. 6 b (2) is displayed on the target surface.

The target surface may be rotated to a respective playing direction inresponse to a picture drag and rotation operation triggered for thetarget surface. When the playing direction of the target surface isrotated, the target surface is rotated to the respective playingdirection based on the rotated target direction indicated by thetriggered picture drag and rotation operation.

For example, FIG. 6 c (1) is a picture currently displayed on the targetsurface. The picture displayed in FIG. 6 c (1) may be rotated by 45° tothe right so that the picture as shown in FIG. 6 c (2) is displayed onthe target surface in response to the picture drag and rotationoperation triggered by the target object for the target surface, and thepicture drag and rotation operation indicates to rotate by 45° to theright.

In some other embodiments, the cubic geometric body includes a pluralityof surfaces. In response to some operations triggered by the targetobject for the cubic geometric body, it can switch from one surface ofthe cubic geometric body to another. Moreover, a video may be playedcorrespondingly on each surface. When the target object views the videoon one surface of the cubic geometric body, in response to a switchingoperation triggered for any surface of the cubic geometric body, thetarget object may switch from the current surface of the cubic geometricbody to another surface and view the video played on another surface.

In particular, the cubic geometric body may include a target surface andat least one candidate surface, and each candidate surface is associatedwith a respective candidate video. In response to a trigger operationfor any candidate surface, the triggered candidate surface may be takenas a new target surface, and it switches from the target surface to thenew target surface. In response to a video playing operation triggeredfor the new target surface, a candidate video associated with the newtarget surface may be mapped to the new target surface for playing.

A candidate surface selected by sliding by the target object may betaken as the new target surface in response to a sliding operationtriggered by the target object for any one of the candidate surfaces.

For example, as shown in FIG. 7 a , the cubic geometric body is a magiccube. Assuming that the target surface is surface A in the magic cube,in response to the sliding operation triggered for surface B, it canslide to switch from surface A to surface B, and take surface B as thenew target surface. For example, when the target object clicks to playthe video on surface B, the video associated with surface B may bemapped to surface B, and the video may be played on surface B.

Further, when the cubic geometric body is a magic cube, and the fingersof the target object move in the same direction, the magic cube may berotated in the moving direction. A surface originally located behind themagic cube may be rotated to the front of the magic cube as long as thesliding distance is far enough to be seen by the target object.

A candidate surface selected by clicking may be taken as the new targetsurface in response to a clicking operation triggered for any one of thecandidate surfaces.

For example, as shown in FIG. 7 b , the cubic geometric body is a magiccube. Assuming that the target surface is surface A in the magic cube,in response to the clicking operation triggered by the target object forsurface B, it can switch from surface A to surface B, and take surface Bas the new target surface. When the target object clicks to play thevideo on surface B, the video associated with surface B may be mapped tosurface B, and the video may be played on surface B.

It can switch from a current viewpoint to a target viewpoint in responseto a viewpoint switching operation triggered for any one of thecandidate surfaces, and a candidate surface located in the targetviewpoint and opposite the target surface is taken as the new targetsurface.

In an example, the cubic geometric body includes an inner surface and anouter surface. For example, as shown in FIG. 5 d , when the cubicgeometric body is a magic cube, there are 4 surfaces at the outside ofthe magic cube and 4 surfaces at the inside of the magic cube, and avideo may be correspondingly played on each of 8 surfaces at the insideand outside of the magic cube.

It can switch from an outside of the cubic geometric body to an insideof the cubic geometric body in response to a multi-finger reversesliding operation triggered for any one of the candidate surfaces in acase that the current viewpoint is located at the outside of the cubicgeometric body, and the inside of the cubic geometric body is taken asthe target viewpoint.

For example, as shown in FIG. 8 a , the current viewpoint of the targetobject is located at the outside of the cubic geometric body, and thetarget surface is surface A. In response to the multi-finger reversesliding operation of the target object triggered for surface C as shownin FIG. 8 b , it can switch from the outside of the cubic geometric bodyto the inside of the cubic geometric body, and surface C located at theinside of the cubic geometric body and opposite surface A is taken asthe new target surface. When the target object clicks to play the videoon surface C, the video associated with surface C may be mapped tosurface C and played on surface C, and the visual effect of playing thevideo on surface C may be as shown in FIG. 8 c .

In addition, when the current viewpoint of the target object is locatedat the inside of the cubic geometric body, the target object may view aplurality of surrounding videos by sliding the screen left and right. Ifthe picture content of each video is joined back and forth, the visualeffect of the immersed exhibition hall may be simulated.

It switches from the inside of the cubic geometric body to the outsideof the cubic geometric body in response to a multi-finger oppositesliding operation triggered for any one of the candidate surfaces in acase that the current viewpoint is located at the inside of the cubicgeometric body, and the outside of the cubic geometric body is taken asthe target viewpoint.

For example, as shown in FIG. 8 d , the current viewpoint of the targetobject is located at the inside the cubic geometric body, and the targetsurface is surface D. In response to the multi-finger opposite slidingoperation of the target object triggered for surface B as shown in FIG.8 e , it can switch from the inside of the cubic geometric body to theoutside of the cubic geometric body, and surface B located at theoutside of the cubic geometric body and opposite surface D is taken asthe new target surface. When the target object clicks to play the videoon surface B, the video associated with surface B may be mapped tosurface B and played on surface B.

In an embodiment, when the cubic geometric body is a magic cube, theposition of the 3D camera may be changed if a plurality of fingers ofthe target object move in opposite directions. For example, when theplurality of fingers of the target object are close to each other in themanner shown in FIG. 8 e , the 3D camera may be away from the center ofthe magic cube. When the plurality of fingers of the target object aredistant from each other in the manner shown in FIG. 8 b , the 3D cameramay be close to the center of the magic cube.

In some embodiments, the overall process of the video playing methodprovided by this disclosure may be implemented based on the process asshown in FIG. 8 f . As shown in FIG. 8 f , the method includes thefollowing steps.

S801: Create a video and bind the video to a video texture.

One or more videos to be mapped is created. The created videos are usedas texture objects of mapping by VideoTexture to achieve the purpose ofbinding the videos to the video textures.

S802: Extract each frame of picture of the video and convert the sameinto texture mapping.

When the picture of the video changes, the video texture will extractthe current picture of the video and convert the same into the texturemapping.

S803: Create a geometry and a surface material required for a 3D model.

Creating the 3D model requires two attributes: the geometry and thesurface material. By the geometry and the surface material, the 3D modelmay be determined accordingly.

S804: Apply the converted texture mapping to the surface material of the3D model.

After the geometry and the surface material of the 3D model are created,each frame of the picture of the video converted into the texturemapping in S802 may be pasted on the surface material of the 3D model.The process in S804 is automatically performed again as long as newtexture mapping is generated due to the characteristics of the videotexture.

In texture mapping, a respective video may be pasted on one or moresurfaces of the 3D model as needed.

S805: Rotate the 3D model or change a position of a 3D camera inresponse to a trigger operation of a target object.

After the video is pasted as the texture mapping to the surfaces of the3D model, the 3D model may be rotated, or the position of the 3D cameramay be changed in response to the trigger operation of the targetobject.

In an example, any one of the following operations may be performed.

Switching to a surface of the 3D model selected by sliding by the targetobject may be performed in response to the sliding operation triggeredby the target object.

Switching to a surface of the 3D model selected by clicking by thetarget object may be performed in response to the clicking operationtriggered by the target object.

Switching from the outside of the 3D model to the inside of the 3D modelmay be performed in response to the multi-finger reverse slidingoperation triggered by the target object in a case that the currentposition of the 3D camera is located at the outside of the 3D model.

Switching from the inside of the 3D model to the outside of the 3D modelmay be performed in response to the multi-finger opposite slidingoperation triggered by the target object in a case that the currentposition of the 3D camera is located at the inside of the 3D model.

Reducing a picture dimension on a surface of the 3D model may beperformed in response to the multi-finger gathering operation triggeredby the target object.

Magnifying a picture dimension on a surface of the 3D model may beperformed in response to the multi-finger magnification operationtriggered by the target object.

Rotating a picture on a surface of the 3D model to a respective playingdirection may be performed in response to the picture drag and rotationoperation triggered by the target object.

S806: Use WebGL to render a picture of the video on a screen.

WebGL will re-render the screen every frame because the texture mappingof the model material changes, resulting in the constant change ofappearance of the model. As such, the visual effect of playing the videoon the surfaces of the 3D model can be obtained.

According to the video playing method provided in an embodiment of thisdisclosure, a plurality of videos is projected on different surfaces ofa cubic geometric body for playing based on texture mapping. It isrealized by continuously replacing the texture mapping of varioussurface materials in each frame rendered by WebGL. A video maycorrespond to a surface or a plurality of surfaces. The cubic geometricbody may be set to any shape as needed. The target object may switch thesurfaces of the cubic geometric body by a respective sliding or clickingoperation to view the video on different surfaces, and may also controlthe 3D camera to enter the inside of the cubic geometric body to obtaina simulated viewing experience of the panoramic exhibition hall, enrichthe visual representation ways of the video in 3D, and improve theinteraction interest of the target object.

Similar to the video playing method shown in FIG. 3 , an embodiment ofthis disclosure further provides a video playing apparatus, and thevideo playing apparatus may be arranged in the server or the terminaldevice. The apparatus is an apparatus corresponding to the video playingmethod of this disclosure, and the principle of the apparatus forsolving the problem is similar to the method for example. Therefore, foran exemplary implementation of the apparatus reference may be made tothe implementation of the above method, and the repeated parts will notbe described in detail.

FIG. 9 shows a schematic structural diagram of a video playing apparatusprovided by an embodiment of this disclosure. As shown in FIG. 9 , thevideo playing apparatus includes a video acquisition module 901 and avideo playing module 902.

The video acquisition module 901 is configured to acquire a target videoin response to a video playing operation triggered by the target objectfor a target surface of a cubic geometric body.

The video playing module 902 is configured to obtain pixel point setscorresponding to respective video frames included in the target videoseparately and map the respective video frames to the target surfacesuccessively based on a mapping relationship between positioninformation about each pixel point in each pixel point set and positioninformation about each vertex on the target surface, the respectivevideo frames including a target video frame, and the target video framebeing played on the target surface after the target video frame ismapped to the target surface.

Alternatively, the video playing module 902 is configured to map thetarget surface to a texture coordinate system for the target video frameto obtain a target texture coordinate plane and a first correspondingrelationship, the first corresponding relationship being used foridentifying each vertex on the target surface corresponding to a texturecoordinate on the target texture coordinate plane.

The video playing module 902 is configured to adjust a picture dimensionof the target video frame to obtain a second corresponding relationshipaccording to an image dimension of the target texture coordinate plane,the second corresponding relationship being used for identifying eachpixel point in the adjusted target video frame corresponding to atexture coordinate on the target texture coordinate plane.

The video playing module 902 is configured to map the pixel points ofthe target video frame to vertices having a same texture coordinate inthe target surface separately based on the mapping relationship obtainedby the first corresponding relationship and the second correspondingrelationship.

Alternatively, the cubic geometric body further includes at least onecandidate surface, and each candidate surface is associated with arespective candidate video. As shown in FIG. 10 , the above apparatusmay further include a surface switching module 1001, configured to Thesurface switching module 1001 is configured to take a triggeredcandidate surface as a new target surface in response to a triggeroperation for any one of the candidate surfaces.

The surface switching module 1001 is configured to switch from thetarget surface to the new target surface.

The surface switching module 1001 is configured to map a candidate videoassociated with the new target surface to the new target surface forplaying in response to a video playing operation triggered for the newtarget surface.

Alternatively, the surface switching module 1001 is further configuredto take a candidate surface selected by sliding as the new targetsurface in response to a sliding operation triggered for any one of thecandidate surfaces.

The surface switching module 1001 is configured to take a candidatesurface selected by clicking as the new target surface in response to aclicking operation triggered for any one of the candidate surfaces.

The surface switching module 1001 is configured to switch from a currentviewpoint to a target viewpoint in response to a viewpoint switchingoperation triggered for any one of the candidate surfaces and taking acandidate surface located in the target viewpoint and opposite thetarget surface as the new target surface.

Alternatively, the surface switching module 1001 is further configuredto switch from an outside of the cubic geometric body to an inside ofthe cubic geometric body in response to a multi-finger reverse slidingoperation triggered by the target object for any one of the candidatesurfaces in a case that the current viewpoint is located at the outsideof the cubic geometric body, and take the inside of the cubic geometricbody as the target viewpoint.

The surface switching module 1001 is configured to switch from theinside of the cubic geometric body to the outside of the cubic geometricbody in response to a multi-finger opposite sliding operation triggeredfor any one of the candidate surfaces in a case that the currentviewpoint is located at the inside of the cubic geometric body, and takethe outside of the cubic geometric body as the target viewpoint.

Alternatively, as shown in FIG. 10 , the above apparatus may furtherinclude a picture adjustment module 1002, configured to adjust a picturedimension or a playing direction of the target surface in response to apicture adjustment operation triggered for the target surface.

Alternatively, the picture adjustment module 1002 is configured toreduce the picture dimension of the target surface in response to amulti-finger gathering operation triggered for the target surface,magnify the picture dimension of the target surface in response to amulti-finger magnification operation triggered for the target surface,and rotate the target surface to a respective playing direction inresponse to a picture drag and rotation operation triggered for thetarget surface.

Based on the above method embodiment and apparatus embodiment, anembodiment of this disclosure further provides an electronic device.

In an embodiment, the electronic device may be a server, such as theserver 130 shown in FIG. 2 . In the embodiment, the structure of theelectronic device may be shown in FIG. 11, including a memory 1101, acommunication module 1103, and one or more processors 1102 (orprocessing circuitry).

The memory 1101 is configured to store the computer program executed bythe processor 1102. The memory 1101 may include a storage program areaand a storage data area. The storage program area may store operatingsystems, programs required to run instant communication functions, andthe like. The storage data area may store various instant communicationinformation, operation instruction sets, and the like.

The memory 1101 may be a volatile memory, such as a random-access memory(RAM). The memory 1101 may also be a non-volatile memory, such as aread-only memory (ROM), a flash memory, a hard disk drive (HDD), or asolid-state drive (SSD). The memory 1101 may also be any other mediathat can be used to carry or store desired program code in the form ofinstructions or data structures and can be accessed by the computer, butis not limited thereto. The memory 1101 may be a combination of theabove memories.

The processor 1102 may include processing circuitry, such as one or morecentral processing units (CPU) or is a digital processing unit and thelike. The processor 1102 is configured to implement the above videoplaying method when calling the computer program stored in the memory1101.

The communication module 1103 is configured to communicate with theterminal device and other electronic devices. If the electronic deviceis a server, the server may receive the target video transmitted by theterminal device through the communication module 1103.

The specific connection medium among the above memory 1101, thecommunication module 1103, and the processor 1102 is not limited in theembodiments of this disclosure. According to the embodiments of thepresent disclosure, in FIG. 11 , the memory 1101 is connected to theprocessor 1102 by a bus 1104, and the bus 1104 is represented by a boldline in FIG. 11 . The connection ways of other components areillustrative only and not intended to be limiting. The bus 1104 may bedivided into an address bus, a data bus, a control bus, and the like.For ease of illustration, only one bold line is shown in FIG. 11 , butit does not indicate that there is only one bus or one type of bus.

In another embodiment, the electronic device may be any electronicdevice, such as a mobile phone, a tablet computer, a point of sales(POS), a vehicle-mounted computer, a smart wearable device, and a PC.The electronic device may be the terminal device 110 shown in FIG. 2 .

FIG. 12 shows a structural block diagram of an electronic deviceprovided by an embodiment of this disclosure. As shown in FIG. 12 , theelectronic device includes a radio frequency (RF) circuit 1210, a memory1220, an input unit 1230, a display unit 1240, a sensor 1250, an audiocircuit 1260, a WiFi module 1270, and a processor 1280. It will beunderstood by those skilled in the art that the structure of theelectronic device shown in FIG. 12 are not limiting the electronicdevice. Compared with the illustration, it may include more or fewercomponents, combine some components, or make a different arrangement ofcomponents

The constituent components of the electronic device are described infurther detail below with reference to FIG. 12 .

The RF circuit 1210 may be configured to receive and transmit signals inthe process of transceiving information or calling. In particular, afterreceiving downlink information about a base station, the downlinkinformation is processed by the processor 1280. In addition, the uplinkdata designed is transmitted to the base station.

The memory 1220 may be configured to store a software program and amodule. As a program instruction/module corresponding to the videoplaying method and apparatus in the embodiments of this disclosure, theprocessor 1280 runs the software program and module stored in the memory1220 so as to perform various functional applications and dataprocessing of the electronic device, e.g., the video playing methodprovided by the embodiments of this disclosure. The memory 1220 mayinclude a storage program area and a storage data area. The storageprogram area may store an operating system, an application program of atleast one application, and the like. The storage data area may storedata and the like created according to the use of the electronic device.

The input unit 1230 may be configured to receive numeric or characterinformation inputted by the target object, and produce key signal inputsrelated to the target object setting and functional control of theterminal.

Alternatively, the input unit 1230 may include a touch panel 1231 andother input devices 1232.

The touch panel 1231, also referred to as a touchscreen, may collect thetouch operations of the target object on or near the touch panel (suchas an operation of using, by the target object, any suitable object oraccessory, such as a finger and a stylus on the touch panel 1231 or nearthe touch panel 1231), and realize the respective operations accordingto a pre-set program, such as an operation of clicking, by the targetobject, a quick identification of a functional module.

Alternatively, other input devices 1232 may include, but are not limitedto, one or more of a physical keyboard, a function key (such as a volumecontrol key and a switch key), a trackball, a mouse, and a joystick.

The display unit 1240 may be configured to display information inputtedby the target object or interface information presented to the targetobject and various menus of the electronic device.

The display unit 1240 may include a display panel 1241. Alternatively,the display panel 1241 may be configured in the form of a liquid crystaldisplay (LCD), an organic light-emitting diode (OLED), and the like.

Further, the touch panel 1231 may cover the display panel 1241. When thetouch panel 1231 detects a touch operation on or near the touch panel,the operation is transmitted to the processor 1280 to determine the typeof the touch event, and then the processor 1280 provides respectiveinterface outputs on the display panel 1241 based on the type of thetouch event.

In FIG. 12 , the touch panel 1231 and the display panel 1241 areimplemented as two separate components to implement input and inputfunctions of the electronic device. But, in some embodiments, the touchpanel 1231 may be integrated with the display panel 1241 to implementthe input and output functions of the terminal.

The electronic device may further include at least one sensor 1250.

The audio circuit 1260, the speaker 1261, and the microphone 1262 mayprovide an audio interface between the target object and the electronicdevice.

The processor 1280 is the control center of the electronic device andutilizes various interfaces and lines to connect various portions of theoverall electronic device to perform various functions and process dataof the electronic device by running or executing software programsand/or modules stored in the memory 1220 and calling data stored in thememory 1220.

It can be understood that the structure shown in FIG. 12 is onlyillustrative. The electronic device may further include more or fewercomponents than the components shown in FIG. 12 , or have aconfiguration different from the components shown in FIG. 12 . Thecomponents shown in FIG. 12 may be implemented using hardware, software,or a combination thereof.

According to an aspect of this disclosure, there is provided a computerprogram product or a computer program, including a computer instructionstored in a computer-readable storage medium. The processor of thecomputer device reads the computer instruction from thecomputer-readable storage medium, and the processor executes thecomputer instruction to cause the computer device to perform the videoplaying method in the above embodiments.

In addition, the embodiment of this disclosure also provides a storagemedium storing a computer program. The computer program is used forexecuting the method provided by the above embodiment. In an example,the storage medium includes a non-transitory computer-readable storagemedium storing instructions which when executed by a processor cause theprocessor to perform any of the methods described above.

The program product may use any combination of one or more readablemedia. The readable medium may be a readable signal medium or a readablestorage medium. The readable storage medium may be, for example, but isnot limited to, an electric, magnetic, optical, electromagnetic,infrared, or semiconductor system, apparatus, or device, or anycombination thereof. More specific examples (a non-exhaustive list) ofthe readable storage media include: an electrical connection having oneor more conducting wires, a portable disk, a hard disk, the RAM, theROM, an erasable programmable ROM (EPROM or a flash memory), an opticalfiber, a portable compact disk ROM (CD-ROM), an optical storage device,a magnetic storage device, or any suitable combination thereof.

The term module (and other similar terms such as unit, submodule, etc.)in this disclosure may refer to a software module, a hardware module, ora combination thereof. A software module (e.g., computer program) may bedeveloped using a computer programming language and stored in memory ornon-transitory computer-readable medium. The software module stored inthe memory or medium is executable by a processor to thereby cause theprocessor to perform the operations of the module. A hardware module maybe implemented using processing circuitry, including at least oneprocessor and/or memory. Each hardware module can be implemented usingone or more processors (or processors and memory). Likewise, a processor(or processors and memory) can be used to implement one or more hardwaremodules. Moreover, each module can be part of an overall module thatincludes the functionalities of the module. Modules can be combined,integrated, separated, and/or duplicated to support variousapplications. Also, a function being performed at a particular modulecan be performed at one or more other modules and/or by one or moreother devices instead of or in addition to the function performed at theparticular module. Further, modules can be implemented across multipledevices and/or other components local or remote to one another.Additionally, modules can be moved from one device and added to anotherdevice, and/or can be included in both devices.

The use of “at least one of” or “one of” in the disclosure is intendedto include any one or a combination of the recited elements. Forexample, references to at least one of A, B, or C; at least one of A, B,and C; at least one of A, B, and/or C; and at least one of A to C areintended to include only A, only B, only C or any combination thereof.References to one of A or B and one of A and B are intended to include Aor B or (A and B). The use of “one of” does not preclude any combinationof the recited elements when applicable, such as when the elements arenot mutually exclusive.

The above only describes exemplary implementations of this disclosure,but the scope of protection of this disclosure is not limited thereto.It will be apparent to those skilled in the art that various changes andsubstitutions may be made which are within the scope of this disclosure.

What is claimed is:
 1. A method for displaying video, the methodcomprising: determining a first target surface of a geometric body onwhich a first target video is to be displayed; obtaining pixel pointsets corresponding to respective video frames of the first target video;mapping each of the respective video frames to the first target surfacebased on a mapping relationship between position information of pixelpoints in the pixel point sets of the respective video frame andposition information of a plurality of vertices on the first targetsurface, the respective video frames including a target video frame thatis displayed on the first target surface based on the mapping of thetarget video frame to the first target surface; and displaying the firsttarget video on the first target surface of the geometric body based onthe mapping of the respective video frames to the first target surface.2. The method according to claim 1, wherein the geometric body includesa plurality of target surfaces, each of the plurality of target surfacesbeing associated with a different target video, and the determining thefirst target surface of the geometric body includes determining thefirst target surface based on a user input to play the first targetvideo.
 3. The method according to claim 1, wherein the plurality oftarget surfaces includes at least one exterior surface of the geometricbody and at least one interior surface of the geometric body.
 4. Themethod according to claim 1, wherein the mapping comprises: mapping thefirst target surface to a texture coordinate system to obtain a targettexture coordinate plane and a first correspondence relationship, thefirst correspondence relationship identifying each of the plurality ofvertices on the first target surface corresponding to a texturecoordinate on the target texture coordinate plane; adjusting a picturedimension of the target video frame to obtain a second correspondencerelationship according to an image dimension of the target texturecoordinate plane, the second correspondence relationship identifyingeach of a plurality of pixel points in the adjusted target video framecorresponding to a texture coordinate on the target texture coordinateplane; and mapping the plurality of pixel points of the target videoframe to vertices having a same texture coordinate in the first targetsurface separately based on the first correspondence relationship andthe second correspondence relationship.
 5. The method according to claim1, wherein the geometric body includes at least one candidate surface,and the method further comprises: receiving a user selection of a secondtarget surface from the at least one candidate surface; mapping a secondtarget video associated with the second target surface to the secondtarget surface based on the received user selection of the second targetsurface; and displaying the second target video on the second targetsurface of the geometric body based on the mapping of the second targetvideo to the second target surface.
 6. The method according to claim 5,wherein the receiving the user selection comprises: receiving a userinput to change an orientation of the geometric body; and determiningthe second target surface based on the changed orientation of thegeometric body.
 7. The method according to claim 6, wherein the firsttarget surface of the geometric body includes a first one of an exteriorsurface and an interior surface of the geometric body, and the secondtarget surface of the geometric body includes a second one of theexterior surface or the interior surface of the geometric body.
 8. Themethod according to claim 1, further comprising: adjusting a picturedimension of the target surface based on a change to at least one of asize or an orientation of the geometric body.
 9. The method according toclaim 8, wherein the adjusting the picture dimension comprises: reducingthe picture dimension of the first target surface in response to a firstuser input; increasing the picture dimension of the first target surfacein response to a second user input; and changing an orientation of thefirst target surface in response to a third user input.
 10. A videoprocessing apparatus, comprising: processing circuitry configured to:determine a first target surface of a geometric body on which a firsttarget video is to be displayed; obtain pixel point sets correspondingto respective video frames of the first target video; map each of therespective video frames to the first target surface based on a mappingrelationship between position information of pixel points in the pixelpoint sets of the respective video frame and position information of aplurality of vertices on the first target surface, the respective videoframes including a target video frame that is displayed on the firsttarget surface based on the mapping of the target video frame to thefirst target surface; and display the first target video on the firsttarget surface of the geometric body based on the mapping of therespective video frames to the first target surface.
 11. The videoprocessing apparatus according to claim 10, wherein the geometric bodyincludes a plurality of target surfaces, each of the plurality of targetsurfaces being associated with a different target video, and theprocessing circuitry configured to determine the first target surfacebased on a user input to play the first target video.
 12. The videoprocessing apparatus according to claim 10, wherein the plurality oftarget surfaces includes at least one exterior surface of the geometricbody and at least one interior surface of the geometric body.
 13. Thevideo processing apparatus according to claim 10, wherein the processingcircuitry is configured to: map the first target surface to a texturecoordinate system to obtain a target texture coordinate plane and afirst correspondence relationship, the first correspondence relationshipidentifying each of the plurality of vertices on the first targetsurface corresponding to a texture coordinate on the target texturecoordinate plane; adjust a picture dimension of the target video frameto obtain a second correspondence relationship according to an imagedimension of the target texture coordinate plane, the secondcorrespondence relationship identifying each of a plurality of pixelpoints in the adjusted target video frame corresponding to a texturecoordinate on the target texture coordinate plane; and map the pluralityof pixel points of the target video frame to vertices having a sametexture coordinate in the first target surface separately based on thefirst correspondence relationship and the second correspondencerelationship.
 14. The video processing apparatus according to claim 10,wherein the geometric body includes at least one candidate surface, andthe processing circuitry is configured to: receive a user selection of asecond target surface from the at least one candidate surface; map asecond target video associated with the second target surface to thesecond target surface based on the received user selection of the secondtarget surface; and display the second target video on the second targetsurface of the geometric body based on the mapping of the second targetvideo to the second target surface.
 15. The video processing apparatusaccording to claim 14, wherein the processing circuitry is configuredto: receive a user input to change an orientation of the geometric body;and determine the second target surface based on the changed orientationof the geometric body.
 16. The video processing apparatus according toclaim 15, wherein the first target surface of the geometric bodyincludes a first one of an exterior surface and an interior surface ofthe geometric body, and the second target surface of the geometric bodyincludes a second one of the exterior surface or the interior surface ofthe geometric body.
 17. The video processing apparatus according toclaim 10, wherein the processing circuitry is configured to: adjust apicture dimension of the target surface based on a change to at leastone of a size or an orientation of the geometric body.
 18. The videoprocessing apparatus according to claim 17, wherein the processingcircuitry is configured to: reduce the picture dimension of the firsttarget surface in response to a first user input; increase the picturedimension of the first target surface in response to a second userinput; and change an orientation of the first target surface in responseto a third user input.
 19. A non-transitory computer-readable storagemedium storing instructions which, when executed by a processor, causethe processor to perform: determining a first target surface of ageometric body on which a first target video is to be displayed;obtaining pixel point sets corresponding to respective video frames ofthe first target video; mapping each of the respective video frames tothe first target surface based on a mapping relationship betweenposition information of pixel points in the pixel point sets of therespective video frame and position information of a plurality ofvertices on the first target surface, the respective video framesincluding a target video frame that is displayed on the first targetsurface based on the mapping of the target video frame to the firsttarget surface; and displaying the first target video on the firsttarget surface of the geometric body based on the mapping of therespective video frames to the first target surface.
 20. Thenon-transitory computer-readable storage medium according to claim 19,wherein the geometric body includes a plurality of target surfaces, eachof the plurality of target surfaces being associated with a differenttarget video, and the determining the first target surface of thegeometric body includes determining the first target surface based on auser input to play the first target video.